package com.java.springbootjspshiro.dao;

import com.java.springbootjspshiro.entity.Perms;
import com.java.springbootjspshiro.entity.Role;
import com.java.springbootjspshiro.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * description:
 * author:张腾
 * date:2021-03-05
 */
@Mapper
public interface UserDao {
    void save(User user);

    User findByUserName(String username);

    //根据用户名查找角色信息
    User findRolesByUserName(String username);

    //根据角色id查询权限集合
    List<Perms> findPermsByRoleId(String id);


}
